package com.ruibang.glass.portal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 通知公告
 * </p>
 *
 * @author 此代码为自动生成
 * @since 2019-11-12
 */
@Data
@ApiModel
@TableName("t_sys_notice")
public class Notice implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String content;
    /**
     * 类型：0:通知，1:公告
     */
    @ApiModelProperty(value = "类型：0:通知，1:公告,2:催办")
    private Integer type;


    @ApiModelProperty(value = "部门Id")
    private String deptId;

    /**
     * 发布人
     */
    @ApiModelProperty(value = "发布人")
    private String userId;

    @ApiModelProperty(value = "具体业务Id")
    private String businessId;

    @ApiModelProperty(value = "接收人")
    private String receiveUserId;

    @ApiModelProperty(value = "是否已读(0:未读,1:已读)")
    private String isRead;

    @ApiModelProperty(value = "接收人名称")
    @TableField(exist = false)
    private String receiveUserName;

    @ApiModelProperty(value = "发布人名称")
    @TableField(exist = false)
    private String userName;
    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;
}
